﻿using System;
using DDDNorthWind.Core.Bus;
using DDDNorthWind.Core.Message;

namespace DDDNorthWind.Core.MessageHandler
{
    public interface IMessageHandler<in TMessage> : IDisposable where TMessage : IMessage
    {
        IBus Bus { get; set; }

        void Handler(TMessage command);
    }
}